{% extends 'car/base.html' %}

{% block content %}
<div class="container">
    <h2>Sign up</h2>
    <form method="post">
        {% csrf_token %}
        {% for field in form %}
            <p>
                {{ field.label_tag }}<br>
                {{ field }}
                {% if field.help_text %}
                <small style="display: none ">{{ field.help_text }}</small>
                {% endif %}
                {% for error in field.errors %}
                    <a style="color: red">{{ error }}</a>
                {% endfor %}
            </p>
        {% endfor %}
        <button type="submit">Sign up</button>
    </form>
</div>
{% endblock %}